package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 合同信息对象 biz_contract
 * 
 * @author ruoyi
 * @date 2025-08-25
 */
public class BizContract extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 投标信息ID（关联biz_tender_project.id） */
    @Excel(name = "投标信息ID", readConverterExp = "关=联biz_tender_project.id")
    private Long tenderId;

    /** 合同名称 */
    @Excel(name = "合同名称")
    private String contractName;

    /** 合同甲方 */
    @Excel(name = "合同甲方")
    private String contractA;

    /** 合同乙方 */
    @Excel(name = "合同乙方")
    private String contractB;

    /** 合同金额 */
    @Excel(name = "合同金额")
    private BigDecimal contractJe;

    /** 承办部门 */
    @Excel(name = "承办部门")
    private String contractCbbm;

    /** 合同状态（0执行中 1已完成 2已终止） */
    @Excel(name = "合同状态", readConverterExp = "0=执行中,1=已完成,2=已终止")
    private String contractState;

    /** 合同签订日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "合同签订日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date contractQdrq;

    /** 合同附件URL */
    @Excel(name = "合同附件URL")
    private String contractFjUrl;

    /** 逻辑删除（0未删除 1已删除） */
    @Excel(name = "逻辑删除", readConverterExp = "0=未删除,1=已删除")
    private Integer isDeleted;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setTenderId(Long tenderId) 
    {
        this.tenderId = tenderId;
    }

    public Long getTenderId() 
    {
        return tenderId;
    }

    public void setContractName(String contractName) 
    {
        this.contractName = contractName;
    }

    public String getContractName() 
    {
        return contractName;
    }

    public void setContractA(String contractA) 
    {
        this.contractA = contractA;
    }

    public String getContractA() 
    {
        return contractA;
    }

    public void setContractB(String contractB) 
    {
        this.contractB = contractB;
    }

    public String getContractB() 
    {
        return contractB;
    }

    public void setContractJe(BigDecimal contractJe) 
    {
        this.contractJe = contractJe;
    }

    public BigDecimal getContractJe() 
    {
        return contractJe;
    }

    public void setContractCbbm(String contractCbbm) 
    {
        this.contractCbbm = contractCbbm;
    }

    public String getContractCbbm() 
    {
        return contractCbbm;
    }

    public void setContractState(String contractState) 
    {
        this.contractState = contractState;
    }

    public String getContractState() 
    {
        return contractState;
    }

    public void setContractQdrq(Date contractQdrq) 
    {
        this.contractQdrq = contractQdrq;
    }

    public Date getContractQdrq() 
    {
        return contractQdrq;
    }

    public void setContractFjUrl(String contractFjUrl) 
    {
        this.contractFjUrl = contractFjUrl;
    }

    public String getContractFjUrl() 
    {
        return contractFjUrl;
    }

    public void setIsDeleted(Integer isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public Integer getIsDeleted() 
    {
        return isDeleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("tenderId", getTenderId())
            .append("contractName", getContractName())
            .append("contractA", getContractA())
            .append("contractB", getContractB())
            .append("contractJe", getContractJe())
            .append("contractCbbm", getContractCbbm())
            .append("contractState", getContractState())
            .append("contractQdrq", getContractQdrq())
            .append("contractFjUrl", getContractFjUrl())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("isDeleted", getIsDeleted())
            .toString();
    }
}
